package com.gxa.finance.controller;

import com.gxa.common.commons.R;
import com.gxa.finance.service.RecommendedServiceService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/finance/recommended")
@RestController
public class RecommendedServiceController {
    @Autowired
    private RecommendedServiceService recommendedServiceService;
    //分页查询推荐服务
    @GetMapping("/RecommendedPage")
    public R RecommendedPage(Integer currentPage , Integer pageSize){
        //返回查出来的数据
        R r = recommendedServiceService.RecommendedPage(currentPage, pageSize);
        return r;
    }
}
